<base href="${CONTEXT_PATH}/" />
<div class="pageContent">
	<form method="post" action="jms/news/<#if (news.id)??>update<#else>save</#if>"
		  class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" id="id" name="id"  value="${(news.id)!}">
		<div class="pageFormContent" layoutH="56">
			<dl>
				<dt>编码：</dt>
				<dd>
					<input type="text" name="news.id"   value="${(news.id)!}" oldValue="${(news.id)!}"
						class="required" remote="jms/news/checkIsNotExist?id=${(news.id)!}"
						maxlength="30" <#if (news.id)??>readonly="readonly"</#if>/></dd>
			</dl>

			<dl>
				<dt>标题：</dt>
				<dd><input type="text" name="news.name"  value="${(news.name)!}"
					class="required" remote="jms/news/checkNameIsNotExist?id=${(news.id)!}"></dd>
			</dl>
            <dl>
                <dt>内容：</dt>
                <dd><input type="text" name="news.content"  value="${(news.content)!}"></dd>
            </dl>
            <dl>
                <dt>图片地址：</dt>
                <dd><input type="text" name="news.picUrl"  value="${(news.picUrl)!}"></dd>
            </dl>
            <dl>
                <dt>内容地址：</dt>
                <dd><input type="text" name="news.url"  value="${(news.url)!}"></dd>
            </dl>
			<dl>
				<dt>类型：</dt>
				<dd>
                    <select name="news.type" class="required">
                        <option value="">---请选择---</option>
                        <option value="1001" <#if (news.type)?? && news.type==1001>selected="selected"</#if>>公司新闻</option>
                        <option value="1002" <#if (news.type)?? && news.type==1002>selected="selected"</#if>>公司通知</option>
                        <option value="3001" <#if (news.type)?? && news.type==3001>selected="selected"</#if>>建设维护</option>
						<option value="3002" <#if (news.type)?? && news.type==3002>selected="selected"</#if>>运营管理</option>
						<option value="3003" <#if (news.type)?? && news.type==3003>selected="selected"</#if>>地市创新</option>
						<option value="3004" <#if (news.type)?? && news.type==3004>selected="selected"</#if>>综合管理</option>
                    </select>
			    </dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
